package com.syher.util.entity;

import java.io.Serializable;

public class Node implements Serializable {
    private String id;
    private String pid;
    private String value;

    public Node(String id, String pid, String value) {
        this.id = id;
        this.pid = pid;
        this.value = value;
    }

    public String getId() {
        return id;
    }

    public String getPid() {
        return pid;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.format("{id: %s, pid: %s, value: %s}", id, pid, value);
    }
}
